﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace config.service
{
    public interface ISerial
    {
        event EventHandler<MemoryStream>? DataReceived;
        bool Connect(string portName, int baudRate = 9600);
        void Disconnect();
        void SendData(byte[] data);
        bool IsConnected { get; }
        
    }
}
